package jjn.acwing.java_basic;

import java.util.Scanner;

/**
 * @author Jjn
 * @since 2023/8/18 14:39
 */
public class Acwing669 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        double salary = scanner.nextDouble();
        double increase, percentage, newSalary;
        if (salary > 2000) {
            percentage = 0.04;
        } else if (salary > 1200) {
            percentage = 0.07;
        } else if (salary > 800) {
            percentage = 0.1;
        } else if (salary > 400) {
            percentage = 0.12;
        } else {
            percentage = 0.15;
        }
        increase = salary * percentage;
        newSalary = salary * (1 + percentage);
        System.out.printf("Novo salario: %.2f\n", newSalary);
        System.out.printf("Reajuste ganho: %.2f\n", increase);
        System.out.printf("Em percentual: %d%%\n", (int) (percentage * 100));
    }
}
